package com.hbt.feature_consumer.service;

import com.hbt.api.entity.CommonResult;
import com.hbt.api.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("user-provider")
public interface FeatureUserFeign {
    String pre = "user_provider/";

    @PostMapping(value = pre+"getUserByToken")
    public CommonResult<User> getUserByToken(String token);
}
